From: kaf24@firebug.cl.cam.ac.uk Date: Thu, 18 May 2006 09:05:32 +0000 (+0100) Subject: [NET] front: The receive buffer accounting should be unsigned to avoid X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16047^2~40 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=4976068a276b08da4d11808890dd6d79ec1daa41;p=xen.git [NET] front: The receive buffer accounting should be unsigned to avoid range comparison issues. Signed-off-by: Stephen Hemminger --- diff --git a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c index e939df2341..c096cc6a0d 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c @@ -100,7 +100,7 @@ struct netfront_info { #define RX_MIN_TARGET 8 #define RX_DFL_MIN_TARGET 64 #define RX_MAX_TARGET min_t(int, NET_RX_RING_SIZE, 256) - int rx_min_target, rx_max_target, rx_target; + unsigned rx_min_target, rx_max_target, rx_target; struct sk_buff_head rx_batch; struct timer_list rx_refill_timer;